<?php

namespace app\index\controller;

use app\index\model\Banner as BannerModel;
use app\index\model\Config as ConfigModel;
use app\index\model\Patent;
use think\Controller;
use think\Request;

class Research extends BaseController
{
    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        $banner = BannerModel::getBanner('duoyanshou');
        $action = $request->action();
        $this->assign('banner', $banner);
        $this->assign('action', $action);
    }

    /**
     * 合作机构
     */
    public function partners()
    {
        $partners = ConfigModel::getBaseValue('partners');
        $this->assign('partners', $partners);
        return $this->fetch("research-partners");
    }

    /**
     * 专利成分
     */
    public function patent()
    {
        $patents = Patent::getLists();
        $this->assign('patents', $patents);
        return $this->fetch("research-patent");
    }
}
